package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.api.entity.ApiT_order;
import cn.com.api.mapper.ApiT_orderMapper;

/**
 * 
 **/
@Service
public class T_orderServiceImplBase {
	@Autowired
	private ApiT_orderMapper apiT_orderMapper;

	// 根据id获取
	public ApiT_order findT_orderById(Integer id) {
		ApiT_order t_order = apiT_orderMapper.findT_orderById(id);
		return t_order;
	}

	public ApiT_order findT_orderByOrderNum(String orderNum) {
		ApiT_order t_order = apiT_orderMapper.findT_orderByOrderNum(orderNum);
		return t_order;
	}

	// 查看数据集
	public List<ApiT_order> findT_orders() {
		List<ApiT_order> t_orders = apiT_orderMapper.findT_orders();
		return t_orders;
	}

	// 根据条件查看数据集
	public List<Map<String, Object>> findT_ordersByMap(HashMap condition) {
		List<Map<String, Object>> t_orders = apiT_orderMapper.findT_ordersByMap(condition);
		return t_orders;
	}

	// 添加
	public int insertT_order(ApiT_order t_order) {
		int ret_I = apiT_orderMapper.insertT_order(t_order);
		return ret_I;
	}

	// 修改
	public int updateT_order(ApiT_order t_order) {
		int ret_I = apiT_orderMapper.updateT_order(t_order);
		return ret_I;
	}

	// 删除
	public int deleteT_order(Integer id) {
		int ret_I = apiT_orderMapper.deleteT_order(id);
		return ret_I;
	}

	// Foreign keys revelant

	// region Indexs revelant

}
